import Layout from '@/layout'
// 员工模块
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
    // 如果path的值是空字符串,那么默认就显示该二级路由
      path: '',
      name: 'employees',
      component: () => import('@/views/employees'),
      meta: {
        title: '员工管理',
        icon: 'people'
      }
    },
    // 详情页
    {
      path: 'detail/:id', // 动态路由参数
      component: () => import('@/views/employees/detail'),
      hidden: true,
      props: true,
      meta: {
        title: '员工详情'
      }
    },
    // 打印
    // 员工打印页
    {
      path: 'print/:id',
      component: () => import('@/views/employees/print'),
      hidden: true,
      meta: {
        title: '员工打印'
      }
    }

  ]
}
